package com.example.vue_serve.dao;

import com.example.vue_serve.entity.TbUser;
import com.example.vue_serve.entity.TbUserinfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TbUserDAO {
    List<TbUser> findAll();

    int add(TbUser user);

    int updateUser(TbUser user);
    int delUser(int id);
    List<TbUser> queryByName(TbUser user);
    List<TbUser> queryLikeName(TbUser user);
    List<TbUser> queryByTiaojian(TbUser user);
    TbUserinfo login(TbUserinfo userinfo);
}
